package com.dropgame.main;


import com.badlogic.gdx.Game;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.Screen;
import com.dropgame.main.*;
import com.dropgame.screens.MainMenuScreen;


public class DropGame extends Game{

	/*
	 * The main entry point for the game
	 */
	MainMenuScreen mainMenuScreen;
	
	
	// The profile service is created here so we have access to it in all parts of the program
	public final MultipleProfileService multipleProfile;
	
	public static final String LOG = DropGame.class.getSimpleName();
	
	public static final int VIRTUAL_WIDTH = 320;
    private static final int VIRTUAL_HEIGHT = 480;
    private static final float ASPECT_RATIO = (float)VIRTUAL_WIDTH/(float)VIRTUAL_HEIGHT;
    
	public DropGame(){
		
		multipleProfile = new MultipleProfileService();
	}
	
	
	
	@Override
	public void create() {
		Gdx.app.log( DropGame.LOG, "Creating game" );
		
		// Load all the profiles
		multipleProfile.loadProfiles();
		
		//Load the assets
		AssetLoader.load();
		
		//Create a main menu screen which will be the first screen.
		mainMenuScreen = new MainMenuScreen(this);
		
		//Set the main menu screen as the active screen.
		setScreen(mainMenuScreen);
		
	}
	

}
